package tools

import (
	"fmt"
	"github.com/spf13/viper"
)

// ParseUrlImg 解析返回图片链接
func ParseUrlImg(path string) string {
	currentUrl := viper.GetString("server.httpPort")
	return fmt.Sprintf("http://%s/static%s", currentUrl, path)
}
